<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>
  let str = '200.12';
  let num = Number(str);
  console.log(num);
</script>
</body>
</html>
